package com.example.yiqinmanagersystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.yiqinmanagersystem.entity.LineTrend;
import com.example.yiqinmanagersystem.entity.NocvData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/*
 **@Author:youpeng
 **Created on 2022/9/11
 */
@Mapper
public interface DataDisplayMapper extends BaseMapper<NocvData> {

    @Select("select id,confirm,isolation,cure,dead,similar,create_time from line_trend order by create_time limit 7")
    List<LineTrend> findSevenData();
}
